/*
 * @Description: 产品列表， 插件列表相关接口
 * @Author: 黄勇
 * @LastEditors: 黄勇
 * @Date: 2019-03-28 10:51:12
 * @LastEditTime: 2020-04-10 11:03:58
 */
const product = {
    // 创建空白产品
    createProduct: '/product/product/create',
    getProductList: '/product/productPackage/getProductPackages',
    getProductDetail: '/product/productPackage/getProductPackageDetail',
    // 停启用产品
    openOrCloseProduct: '/product/product/status',
    //getPluginList: '/product/product/all-optional-plugins',
    // 保存产品
    saveProduct: '/product/product/save',

    // 产品中子插件crud
    getProductPluginList: '/product/product/child/list',
    addPluginToProduct: '/product/product/child/batch-save',
    deletePluginToProduct: '/product/product/child/delete',
    modifyPluginToProduct: '/product/product/child/save',

    // *************************************************************************************插件相关接口
    getPluginList: '/product/product/findBasicInfos',
    getPluginDetail: '/product/product/getBasicInfoById',
    addPlugin: '/product/product/addBasicInfo',
    openOrClosePlugin: '/product/product/operateBasicInfostatus',
    deletePlugin: '/product/product/deleteBasicInfos',
    updatePlugin: '/product/product/updateBasicInfo',

    // *************************************************************************************产品分类相关接口
    getProductLine: '/product/product/productdict/all',
    getCategoryList: '/product/product/category/all',
    addCategory: '/product/product/category/add',
    deleteCategory: '/product/product/category/delete',
    updateCategory: '/product/product/category/update',

    // 获取分类树形结构(530废弃)
    // getCategoryTree: '/product/product/category/getTree',
    // getProductBasicInfosByType: '/product/product/getProductBasicInfosByCategoryId',

    // 获取服务分类列表
    getCategoryType: '/product/product/getTypes',
    getProductBasicInfosByType: '/product/product/getProductBasicInfosByType'
}

export default product;